home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / T_WORDS.DMO < prev    next >
Text File  |  1996-07-04  |  3KB  |  57 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   T_WORDS .DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. $INCLUDE "DAS-NB02.INC"
  19. COLOR 7,0
  20. CLS
  21.  
  22. SetTimeFormat 0, 58      ' 12hr clock ":"
  23. SetTimeFormat 1, 46      ' 24hr clock "."     ' rem this line out next time
  24.  
  25. Tyme$ = fSYSTIME$
  26. HS?   = fSYShms?( H?, M?, S? )
  27.  
  28. PRINT USING "Hours: ##  Minutes: ## Seconds: ##_.##"; H?, M?, S?, HS?
  29. PRINT "fSYStime$ = "; Tyme$
  30. PRINT "fSYShm$   = "; fSYShm$
  31. PRINT
  32.  
  33. PRINT "fHMS2time$(H?,M?,S?)       = "; fHMS2time$(H?,M?,S?)
  34. PRINT "fHM2hm$   (H?,M?,S?)       = "; fHM2hm$   (H?,M?)
  35. PRINT "Time2HMS Tyme$,H?,M?,S?    ="; H?, M?, S?
  36. PRINT
  37.  
  38. Tyme?? = fTime2Word??( Tyme$ )
  39. PRINT "fTime2Word??  ( Tyme$ )    =" ; fTime2Word??  (Tyme$)
  40. PRINT "fTime2WordCK??( Tyme$ )    =" ; fTime2WordCK??(Tyme$)
  41. PRINT "fHMS2Word??   (H?,M?,S?)   =" ; fHMS2Word??   (H?,M?,S?)
  42. PRINT "Word2HMS Tyme??,H?,M?,S?   =" ; H?, M?, S?
  43. PRINT "fWord2Time$   ( Tyme?? )   = "; fWord2Time$   (Tyme??)
  44. PRINT "fWord2HM$     ( Tyme?? )   = "; fWord2HM$     (Tyme??)
  45. PRINT "fSYSt2word??()             =" ; fSYST2WORD??
  46. PRINT
  47.  
  48. Tyme& = fTime2Long& ( Tyme$ )
  49. PRINT "fTime2Long&  ( Tyme$ )     =" ; fTime2long&  (Tyme$)
  50. PRINT "fTime2LongCK&( Tyme$ )     =" ; fTime2longCK&(Tyme$)
  51. PRINT "fHMS2Long&   (H?,M?,S?)    =" ; fHMS2long&   (H?,M?,S?)
  52. PRINT "Long2HMS Tyme&,H?,M?,S?    =" ; H?, M?, S?
  53. PRINT "fLong2Time$  ( Tyme& )     = "; flong2Time$   (Tyme&)
  54. PRINT "fLong2HM$    ( Tyme& )     = "; flong2HM$     (Tyme&)
  55. PRINT "fSYSt2Long&  ()            =" ; fSYST2long&
  56. PRINT
  57.